package com.travel.server.manager.dao;

import com.travel.server.manager.model.ProjectConsult;
import com.travel.server.manager.model.ProjectConsultExample;
import com.travel.server.manager.model.dto.data.ProjectTrendDto;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ProjectConsultDao {
    int countByExample(ProjectConsultExample example);

    int deleteByExample(ProjectConsultExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ProjectConsult record);

    int insertSelective(ProjectConsult record);

    List<ProjectConsult> selectByExample(ProjectConsultExample example);

    ProjectConsult selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ProjectConsult record, @Param("example") ProjectConsultExample example);

    int updateByExample(@Param("record") ProjectConsult record, @Param("example") ProjectConsultExample example);

    int updateByPrimaryKeySelective(ProjectConsult record);

    int updateByPrimaryKey(ProjectConsult record);

    List<ProjectTrendDto> selectProjectConsult(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
}